/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package button_tools;

import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import java.awt.Color;

/**
 *
 * @author tnull
 */
public class TLine extends TShape {

    public TLine(Color c, int x, int y, int w, int h) {
        super(c, x, y, w, h);
        this.setType(SHAPE_TYPE.LINE);
    }
    
    @Override
    protected void draw(Graphics2D gfx) {
        gfx.setColor(m_Color);
        gfx.draw(new Line2D.Double(m_x, m_y, m_width, m_height));
    }

}
